home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Ebooks / Thinking in C++ V2 / C03 / FileStatic.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-25  |  391 b   |  16 lines

  1. //: C03:FileStatic.cpp
  2. // From Thinking in C++, 2nd Edition
  3. // Available at http://www.BruceEckel.com
  4. // (c) Bruce Eckel 1999
  5. // Copyright notice in Copyright.txt
  6. // File scope demonstration. Compiling and 
  7. // linking this file with FileStatic2.cpp
  8. // will cause a linker error
  9.  
  10. // File scope means only available in this file:
  11. static int fs; 
  12.  
  13. int main() {
  14.   fs = 1;
  15. } ///:~
  16.